import {
	request
} from '../request.js'

const login = (data) => {
	return request({
		url: '/auth/login',
		method: 'post',
		data: data
	})
}

export const getUserInfo = (data) => {
	return request({
		url: '/auth/user_info',
		method: 'get',
		data: data
	})
}

const AuthApi = {
	login,
	getUserInfo
}

export default AuthApi;